<?php
namespace GRH\Model;

class Couleur
{
    public $id;
    public $code;
    public $libelle;
    
    public function exchangeArray($data)
    {
        $this->id       = isset($data['id'])        ? $data['id']       : null;
        $this->code     = isset($data['code'])      ? $data['code']     : null;
        $this->libelle  = isset($data['libelle'])   ? $data['libelle']  : null;
    }
    
    public function getArrayCopy()
    {
        return get_object_vars($this);
    }
}